<template>
  <div>
    <CategorySelector :disabled="isShowAttrList" />
    <AttrList
      v-if="!isShowAttrList"
      @updateIsShowAttrList="isShowAttrList = $event"
    />
    <AddOrUpdateAttr v-else @updateIsShowAttrList="isShowAttrList = $event" />
  </div>
</template>

<script lang="ts">
export default {
  name: "XAttr",
};
</script>

<script lang="ts" setup>
import { ref } from "vue";
import AttrList from "./components/AttrList/index.vue";
import AddOrUpdateAttr from "./components/AddOrUpdateAttr/index.vue";
import CategorySelector from "@/components/CategorySelector/index.vue";
const isShowAttrList = ref(false);
</script>

<style scoped></style>
